<?php

/**
 * 后台环境页
 * @copyright (c) 2013, Mr.Wang
 * 
 */
class ArticleAction extends AdminAction {

    function _before_update() {
        $_POST['content'] = $_POST['info']['content'];
        if ($_POST['is_top'] != 1) {
            $_POST['is_top'] = 0;
        }
        if ($_POST['is_rec'] != 1) {
            $_POST['is_rec'] = 0;
        }
        if ($_POST['is_bottom'] != 1) {
            $_POST['is_bottom'] = 0;
        }
    }

}
